﻿using Mutzl.Samples.VideoApp.Common;
using Mutzl.Samples.VideoApp.RssContent.Model;
using Windows.UI.Xaml.Controls;

namespace Mutzl.Samples.VideoApp.RssContent.View
{
    public sealed partial class MainView : LayoutAwarePage
    {

        //Todo: B04. Hintergrund (statisches Bild) und/oder Video in Endlosschleife im XAML Zeile 21-22 anpassen

        public MainView()
        {
            InitializeComponent();
        }

        void ItemView_ItemClick(object sender, ItemClickEventArgs e)
        {
            // Navigate to the appropriate destination page, configuring the new page
            // by passing required information as a navigation parameter
            var video = ((Video)e.ClickedItem);
            Frame.Navigate(typeof(DetailView), video);
        }
    }
}
